package com.ruoyi.cms.domain.bo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 幻灯片详情业务对象 cms_slide_info
 *
 * @author guorui
 * @date 2023-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmsSlideInfoBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 幻灯片ID
     */
    @NotNull(message = "幻灯片ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer slideId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 备注
     */
    private String remark;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String img;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String src;

    /**
     * 1可用-1禁用
     */
    @NotNull(message = "1可用-1禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


}
